package com.pacifico.telebusca.web.controladores;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/importaraudios")
public class ControladorImportarAudios {

	
	
	
	/*
	@Autowired
	private TeleBuscaFacade teleBuscaFacade;
	
	public void validarArchivoXml() {
		teleBuscaFacade.validarArchivoXml();
	}
	
	@RequestMapping(value = "/save", method = RequestMethod.POST)
	public String cargarResgistroValidados(@ModelAttribute("uploadForm") ArchivoFormulario uploadForm,
			Model map) {
		


		List<MultipartFile> files = uploadForm.getFiles();

		List<String> fileNames = new ArrayList<String>();

		if (null != files && files.size() > 0) {
			for (MultipartFile multipartFile : files) {

				String fileName = multipartFile.getOriginalFilename();
				fileNames.add(fileName);
				// Handle file content - multipartFile.getInputStream()

			}
		}

		map.addAttribute("files", fileNames);
		
	
		
		teleBuscaFacade.cargarResgistroValidados();
		return "file_upload_success";
		
	}
	
	public void descargarArchivoResgistroNoValidos() {
		teleBuscaFacade.descargarArchivoResgistroNoValidos();
	}
	
	@RequestMapping(value = "/show", method = RequestMethod.GET)
	public String mostrarPagina() {
		return "file_upload_form";
	}

	
	
*/}
